package com.woniu.woniuticket.common;


import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;
//
//@Component
//@Configurable
//@EnableScheduling
//public class ScheduledTasks {
//
//    @Scheduled(fixedDelay = 5000)
//    public void reportTime(Integer seatId){
//
//        System.out.println("时间是："+dateFormat().format(new Date()));
//    }
//
//
//    private SimpleDateFormat dateFormat(){
//        return new SimpleDateFormat ("HH:mm:ss");
//    }
//}
